package com._520it.crm.service.impl;

import com._520it.crm.domain.Insurance;
import com._520it.crm.mapper.InsuranceMapper;
import com._520it.crm.service.IInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IInsuranceServiceImpl implements IInsuranceService {
    @Autowired
    private InsuranceMapper insuranceMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return insuranceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Insurance record) {
        return insuranceMapper.insert(record);
    }

    @Override
    public Insurance selectByPrimaryKey(Long id) {
        return insuranceMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Insurance> selectAll() {
        return insuranceMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Insurance record) {
        return insuranceMapper.updateByPrimaryKey(record);
    }
}
